home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / Graf3DEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  3.3 KB  |  114 lines  |  [TEXT/MPS ]

  1. ; Version: 2.98
  2. ; Created: Friday, October 20, 1989 at 9:22:27 PM
  3. ;
  4. ; File: Graf3DEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1991
  8. ; All Rights Reserved
  9. ;
  10. ;-------------------------------------------------------------------------
  11.  
  12.     IF &TYPE('__IncludingGraf3DEqu__') = 'UNDEFINED' THEN
  13. __IncludingGraf3DEqu__    SET    1
  14.  
  15. ; Equates for Graf3D
  16. ; Three-dimensional graphics routines layered on top of QuickDraw
  17. FixRad            EQU         3754936                   ;radConst = 57.29578
  18. FracRad           EQU         1073741824
  19. ;offsets
  20. ;Point3D and Point2D
  21. x                 EQU         0                         ;Fixed
  22. y                 EQU         4                         ;Fixed
  23. z                 EQU         8                         ;Fixed
  24. ;XfMatrix = ARRAY[0..3,0..3] OF fixed
  25. xf00              EQU         0
  26. xf01              EQU         4
  27. xf02              EQU         8
  28. xf03              EQU         12
  29. xf10              EQU         16
  30. xf11              EQU         20
  31. xf12              EQU         24
  32. xf13              EQU         28
  33. xf20              EQU         32
  34. xf21              EQU         36
  35. xf22              EQU         40
  36. xf23              EQU         44
  37. xf30              EQU         48
  38. xf31              EQU         52
  39. xf32              EQU         56
  40. xf33              EQU         60
  41. ;Port3D
  42. GrPort            EQU         0                         ;GrafPtr
  43. viewRect          EQU         4                         ;Rect
  44. xLeft             EQU         12                        ;Fixed
  45. yTop              EQU         16                        ;Fixed
  46. xRight            EQU         20                        ;Fixed
  47. yBottom           EQU         24                        ;Fixed
  48. pen               EQU         28                        ;Point3D
  49. penPrime          EQU         40                        ;Point3D
  50. eye               EQU         52                        ;Point3D
  51. hSize             EQU         64                        ;Fixed
  52. vSize             EQU         68                        ;Fixed
  53. hCenter           EQU         72                        ;Fixed
  54. vCenter           EQU         76                        ;Fixed
  55. xCotan            EQU         80                        ;Fixed
  56. yCotan            EQU         84                        ;Fixed
  57. ident             EQU         88                        ;BOOLEAN
  58. xForm             EQU         90                        ;XfMatrix
  59. szPort3D          EQU         154                       ;size of Port3D
  60.  
  61. ;PROCEDURE InitGrf3D (globalPtr: Ptr);
  62.          IMPORT   InitGrf3D
  63. ;PROCEDURE Open3DPort (port: Port3DPtr);
  64.          IMPORT   Open3DPort
  65. ;PROCEDURE SetPort3D (port: Port3DPtr);
  66.          IMPORT   SetPort3D
  67. ;PROCEDURE GetPort3D (VAR port: Port3DPtr);
  68.          IMPORT   GetPort3D
  69. ;PROCEDURE MoveTo2D (x,y: Fixed);
  70.          IMPORT   MoveTo2D
  71. ;PROCEDURE MoveTo3D (x,y,z: Fixed);
  72.          IMPORT   MoveTo3D
  73. ;PROCEDURE LineTo2D (x,y: Fixed);
  74.          IMPORT   LineTo2D
  75. ;PROCEDURE LineTo3D (x,y,z: Fixed);
  76.          IMPORT   LineTo3D
  77. ;PROCEDURE Move2D (dx,dy: Fixed);
  78.          IMPORT   Move2D
  79. ;PROCEDURE Move3D (dx,dy,dz: Fixed);
  80.          IMPORT   Move3D
  81. ;PROCEDURE Line2D (dx,dy: Fixed);
  82.          IMPORT   Line2D
  83. ;PROCEDURE Line3D (dx,dy,dz: Fixed);
  84.          IMPORT   Line3D
  85. ;PROCEDURE ViewPort (r: Rect);
  86.          IMPORT   ViewPort
  87. ;PROCEDURE LookAt (left,top,right,bottom: Fixed);
  88.          IMPORT   LookAt
  89. ;PROCEDURE ViewAngle (angle: Fixed);
  90.          IMPORT   ViewAngle
  91. ;PROCEDURE Identity;
  92.          IMPORT   Identity
  93. ;PROCEDURE Scale (xFactor,yFactor,zFactor: Fixed);
  94.          IMPORT   Scale
  95. ;PROCEDURE Translate (dx,dy,dz: Fixed);
  96.          IMPORT   Translate
  97. ;PROCEDURE Pitch (xAngle: Fixed);
  98.          IMPORT   Pitch
  99. ;PROCEDURE Yaw (yAngle: Fixed);
  100.          IMPORT   Yaw
  101. ;PROCEDURE Roll (zAngle: Fixed);
  102.          IMPORT   Roll
  103. ;PROCEDURE Skew (zAngle: Fixed);
  104.          IMPORT   Skew
  105. ;PROCEDURE TransForm (src: Point3D; VAR dst: Point3D);
  106.          IMPORT   TransForm
  107. ;FUNCTION Clip3D (src1,src2: Point3D; VAR dst1,dst2: POINT): BOOLEAN;
  108.          IMPORT   Clip3D
  109. ;PROCEDURE SetPt3D (VAR pt3D: Point3D; x,y,z: fixed);
  110.          IMPORT   SetPt3D
  111. ;PROCEDURE SetPt2D (VAR pt2D: Point2D; x,y: fixed);
  112.            IMPORT   SetPt2D
  113.  
  114.     ENDIF    ; ...already included